home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / enlightenment / e_fileman_file.h < prev    next >
C/C++ Source or Header  |  2006-01-09  |  3KB  |  75 lines

  1. /*
  2.  * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
  3.  */
  4. #ifdef E_TYPEDEFS
  5.  
  6. typedef struct _E_Fm_File            E_Fm_File;
  7. typedef struct _E_Fm_File_Attributes E_Fm_File_Attributes;
  8. typedef int(*E_Fm_File_Preview_Function) (E_Fm_File*);
  9.  
  10. #define E_FM_FILE_TYPE_FILE      (1 << 8)
  11. #define E_FM_FILE_TYPE_DIRECTORY (1 << 9)
  12. #define E_FM_FILE_TYPE_SYMLINK   (1 << 10)
  13. #define E_FM_FILE_TYPE_UNKNOWN   (1 << 11)
  14. #define E_FM_FILE_TYPE_HIDDEN    (1 << 12)
  15.  
  16. #define E_FM_FILE_TYPE_NORMAL    E_FM_FILE_TYPE_FILE|E_FM_FILE_TYPE_DIRECTORY|E_FM_FILE_TYPE_SYMLINK
  17. #define E_FM_FILE_TYPE_ALL       E_FM_FILE_TYPE_NORMAL|E_FM_FILE_TYPE_HIDDEN
  18.  
  19. #else
  20. #ifndef E_FILEMAN_FILE_H
  21. #define E_FILEMAN_FILE_H
  22.  
  23. #define E_FM_FILE_TYPE 0xE0b01018
  24.  
  25. struct _E_Fm_File
  26. {
  27.    E_Object e_obj_inherit;
  28.  
  29.    int          type;
  30.  
  31.    Evas        *evas;
  32.    Evas_Object *icon_object;
  33.    /* Do we need those?
  34.     * Evas_Object *image_object;
  35.     * Evas_Object *event_object;
  36.     */
  37.  
  38.    char     *path;            /* full name with path */
  39.    char     *name;            /* file name without parent directories */
  40.    char     *mime;            /* mimetype (just the extension) */
  41.  
  42.    dev_t     device;          /* ID of device containing file */
  43.    ino_t     inode;           /* inode number */
  44.    mode_t    mode;            /* protection */
  45.    nlink_t   nlink;           /* number of hard links */
  46.    uid_t     owner;           /* user ID of owner */
  47.    gid_t     group;           /* group ID of owner */
  48.    dev_t     rdev;            /* device ID (if special file) */
  49.    off_t     size;            /* total size, in bytes */   
  50.    time_t    atime;           /* time of last access */
  51.    time_t    mtime;           /* time of last modification */
  52.    time_t    ctime;           /* time of last status change */
  53.    
  54.    E_Fm_File_Preview_Function *preview_funcs;
  55. };
  56.  
  57. EAPI E_Fm_File *e_fm_file_new         (const char *filename);
  58. EAPI int        e_fm_file_rename      (E_Fm_File *file, const char *name);
  59. EAPI int        e_fm_file_delete      (E_Fm_File *file);
  60. EAPI int        e_fm_file_copy        (E_Fm_File *file, const char *name);
  61. EAPI int        e_fm_file_can_preview (E_Fm_File *file);
  62. EAPI int        e_fm_file_is_image    (E_Fm_File *file);
  63. EAPI int        e_fm_file_is_etheme   (E_Fm_File *file);
  64. EAPI int        e_fm_file_is_ebg      (E_Fm_File *file);
  65. EAPI int        e_fm_file_is_eap      (E_Fm_File *file);
  66. EAPI int        e_fm_file_can_exec    (E_Fm_File *file);
  67. EAPI int        e_fm_file_exec        (E_Fm_File *file);
  68. EAPI int        e_fm_file_assoc_set   (E_Fm_File *file, const char *assoc);
  69. EAPI int        e_fm_file_assoc_exec  (E_Fm_File *file);
  70. EAPI int    e_fm_file_exec_with   (E_Fm_File *file, char* exec_with);
  71.  
  72. #endif
  73. #endif
  74.  
  75.